﻿
    using System;
    using System.Collections;
    using UnityEngine;

    public class PoolObject:MonoBehaviour
    {
        private void OnEnable()
        {
            StartCoroutine(DelayRecycle(1));
        }

        IEnumerator DelayRecycle(float interval)
        {
            yield return new WaitForSeconds(interval);
            
            ObjectPool.GetInstance().RecycleGo(gameObject);
        }
    }
